package com.example.demo.service.impl;

import com.example.demo.dao.HotelOrderDao;
import com.example.demo.entity.HotelOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HotelOrderServiceImpl implements HotelOrderService {

    private HotelOrderDao hotelOrderDao;
    @Autowired
    public void set(HotelOrderDao hotelOrderDao){
        this.hotelOrderDao = hotelOrderDao;
    }

    //预定酒店
    @Override
    public int reserve(HotelOrder hotelOrder) {
        return hotelOrderDao.insert(hotelOrder);
    }
}
